<li>
  <%= websitesinf.name %>
  [<% if @article.has_websitesinf?(websitesinf.name) %>
    <%= link_to 'remove website', 
                :controller => 'websites',:action => 'destroy',:id => websitesinf.id, :article_id => @article.id, 
                :method => :delete %>
  <% else %>
    <%= link_to 'assign website', 
                :controller => 'websites',:action => 'update',:id => websitesinf.id, :article_id => @article.id, 
                :method => :put %>
  <% end %>]
</li>
